package com.ss.android.account;

import android.content.SharedPreferences;
import android.content.SharedPreferences;
import com.bytedance.frameworks.b.a.a;
import com.ss.android.bb;
import org.json.JSONObject;

public final class cc implements bb {
    int a;
    private static cc b;

    private cc() {
        this.a = 5;
        com.bytedance.frameworks.b.a.a.a(bb.class, this);
    }

    public static cc a() {
        cc v0_1;
        Class v1 = cc.class;
        synchronized (v1) {
            if(cc.b == null) {
                cc.b = new cc();
            }

            v0_1 = cc.b;
        }
        return v0_1;
    }

    public final void a(SharedPreferences.Editor arg3) {
        arg3.putInt("notify_platform_expired_period", this.a);
    }

    public final void a(SharedPreferences arg3) {
        this.a = arg3.getInt("notify_platform_expired_period", 5);
    }

    public final void a(boolean arg1) {
    }

    public final boolean a(JSONObject arg4) {
        boolean v0 = false;
        int v1 = arg4.optInt("notify_platform_expired_period", -1);
        if(v1 >= 0 && v1 != this.a) {
            this.a = v1;
            v0 = true;
        }

        return v0;
    }

    public final void b() {
    }

    public final void c() {
    }

    public final void d() {
    }
}

